<!--#include file="lib/utf-8.asp"-->
<!--#include file="lib/conn.asp"-->
<!--#include file="lib/saferequest.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<link rel="stylesheet" href="lib/sheet.css" type="text/css" />
<script type="text/javascript" src="lib/jquery.1.4.2.js"></script>
<script type="text/javascript"> 
	$(function() {
	//http://221.12.55.171:8889/getpositionTP.asp?regnum=浙B8E792&jsonpcallback=?
	//http://192.168.0.253/huoyun/a.asp?jsonpcallback=?
		
//[{"clid":1,"regnum":"浙B8E792"},{"clid":2,"regnum":"浙B8E312"}]	
		
		//$.getJSON("jsonproxy.asp",{"url":"http://221.12.55.171:8889/getpositionTP.asp?regnum=浙B8E792"},function(data){
			//http://61.153.145.162:8888/getpositionTP.asp?regnum=浙B8E792 
			//电信地址
			//http://221.12.55.171:8889/getpositionTP.asp?regnum=浙B8E792 
			//网通地址
	$(".line").click(function(){
		ip="61.153.145.162:8888";
		if($(this).val()=="cnc"){ ip="221.12.55.171:8889"}
$.getJSON("http://"+ip+"/getpositionTP.asp?regnum=all&line="+$(this).val()+"&jsonpcallback=?",function(data){
			LicensePlate=data[0].LicensePlate;
			alert(LicensePlate);
			lng=data[0].Geometry.Coordinates[0];
			lat=data[0].Geometry.Coordinates[1];
			mlURL=data[0].mlURL;
			alert(mlURL);
			$("#map_canvas").html("<a href='"+mlURL+"'>"+mlURL+"</a>");
			//id=data.features[0].properties.id;
			//timeStamp=data.features[0].properties.timeStamp;
			//accuracyInMeters=data.features[0].properties.accuracyInMeters;
			//reverseGeocode=data.features[0].properties.reverseGeocode;
			alert(lat);
			alert(lng);
			//alert(id);
			//alert(timeStamp);
			//alert(accuracyInMeters);
			//alert(reverseGeocode);
			//var t = new Date(timeStamp);
			//alert(t.toLocaleString());

			//$("#map_canvas").html(reverseGeocode);
		});
	
	});	
	
	});
 
</script> 
</head> 
<body> 
<button class="line" value="telcom">电信</button><button class="line" value="cnc">网通</button>
  <div id="map_canvas"></div> 
</body> 
</html> 